<?php

namespace App\Events;

use Illuminate\Queue\SerializesModels;

abstract class Event
{
    use SerializesModels;

    public static $eventName;

    public function getEventName()
    {
        if (!static::$eventName) {
            static::$eventName = static::class;
        }
        return static::$eventName;
    }
}
